#include <stdio.h>
#include ".\lib\securec-master\include\securec.h"


int main() {
    int n;
    int a;
    // ~ 的理解？
    while (~scanf_s("%d", &n)) {
        // {} 的理解？
        int count[1001] = {0};
        for (int i=0; i<n; i++) {
            scanf_s("%d", &a);
            count[a] = 1;
        }
        for (int i=0; i<1001; i++) {
            if (count[i] == 1) {
                printf("%d\n", i);
            }
        }
    }
    return 0;
}
